/*
 * @Date: 2025-01-19 11:51:00
 * @LastEditors: zl 1077167261@qq.com
 * @LastEditTime: 2025-02-17 11:21:46
 * @FilePath: \vue-admin\src\main.js
 */
import Vue from "vue";
import "normalize.css/normalize.css";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import "@/styles/index.scss"; // global css

import App from "./App";

import store from "./store";

import router from "./router";

import "@/directive";
// 注册svg
import "@/icons";
// 全局注册组件
import AuthBtn from "@/components/AuthCon/AuthBtn.vue";
import { registerMicroApps, start } from "qiankun";

registerMicroApps([
  {
    name: "hmzs-big-screen", // 子应用名称
    entry: "//localhost:5173", // 子应用运行服务地址（就是npm run dev时的那个地址）
    container: "#container", // 挂载容器（id=container）
    activeRule: "/big-screen", // 激活路由(在哪个路由下加载子应用,需要和子应用的路由名称对应)
  },
]);

start();
Vue.component("AuthBtn", AuthBtn);
Vue.use(ElementUI);

Vue.config.productionTip = false;

// vue实例化
new Vue({
  el: "#app",
  router,
  store,
  render: (h) => h(App),
});
